package com.novax.ex.activity.provider.service;

import com.novax.ex.activity.infrastructure.entity.RankSubConfig;
import com.novax.ex.activity.infrastructure.mapper.RankSubConfigMapper;
import com.novax.ex.common.base.BaseMapper;
import com.novax.ex.common.base.BaseService;
import org.springframework.stereotype.Service;

import jakarta.annotation.Resource;
import java.util.List;

/**
 * @Description 排名赛子活动配置
 * @Author ChenXi
 * @Date 2023/11/23/15:46
 */
 

@Service
public class RankSubConfigService extends BaseService {

    @Resource
    private RankSubConfigMapper rankSubConfigMapper;

    @Override
    protected BaseMapper getBaseMapper() {
        return rankSubConfigMapper;
    }

    /**
     * @param
     * @param rankId
     * @param status
     * @Description: 上架的子活动查询
     * @Author: ChenXi
     * @Date: 2023/11/24 11:02
     * @return: List<RankSubConfig>
     **/
    public List<RankSubConfig> subList(Long rankId, Integer status) {
        return rankSubConfigMapper.subList(rankId, status);
    }


}
